package cn.finder.datatunnel;

public class InfoException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2608977580712678944L;

	// Methods
    public InfoException()
    {
    	
    }
    public InfoException(String message)
    {
    	super(message);
    }

    /*protected ApiException(SerializationInfo info, StreamingContext context)
        : base(info, context)
    {
    }*/
    public InfoException(String message, Exception innerException)
    {
    	super(message, innerException);
    }
    public InfoException(String errorCode, String errorMsg)
    {
    	super(errorCode + ":" + errorMsg);
    	this.errorCode = errorCode;
    	this.errorMsg = errorMsg;
        
    }

    private String errorCode;
    
    private String errorMsg;

	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
    
    
    
    
    
}
